From 56552a9d57397a8b519ef86eb29e8c9ca4ce4416 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 24 Nov 2004 16:04:07 +0000 Subject: [PATCH] Initialize the parent field of the newly allocate list entry. (#159330, 2004-11-24 Matthias Clasen * xdgmimeparent.c (_xdg_mime_parent_read_from_file): Initialize the parent field of the newly allocate list entry. (#159330, Alex Larsson) --- gtk/xdgmime/ChangeLog | 6 ++++++ gtk/xdgmime/xdgmimeparent.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gtk/xdgmime/ChangeLog b/gtk/xdgmime/ChangeLog index 64abfddbad..3045b7278a 100644 --- a/gtk/xdgmime/ChangeLog +++ b/gtk/xdgmime/ChangeLog @@ -1,3 +1,9 @@ +2004-11-24 Matthias Clasen + + * xdgmimeparent.c (_xdg_mime_parent_read_from_file): + Initialize the parent field of the newly allocate list + entry. (#159330, Alex Larsson) + Fri Nov 19 15:10:32 2004 Manish Singh * xdgmime.c: Don't put /* within a comment. diff --git a/gtk/xdgmime/xdgmimeparent.c b/gtk/xdgmime/xdgmimeparent.c index 17bf15dc5b..d6aff20217 100644 --- a/gtk/xdgmime/xdgmimeparent.c +++ b/gtk/xdgmime/xdgmimeparent.c @@ -163,6 +163,7 @@ _xdg_mime_parent_read_from_file (XdgParentList *list, alloc * sizeof (XdgMimeParents)); } list->parents[list->n_mimes].mime = strdup (line); + list->parents[list->n_mimes].parent = NULL; entry = &(list->parents[list->n_mimes]); list->n_mimes++; } -- 2.30.2